﻿function ajaxGetPhone(cid)
 {
 var xmlHttp;
 
 try
    {
   // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
 catch (e)
    {

  // Internet Explorer
   try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
   catch (e)
      {

      try
         {
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e)
         {
         alert("您的浏览器不支持AJAX！");
         return false;
         }
      }
    }
	
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
             document.getElementById(cid).innerHTML = xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","/scenic_spot/AjaxRequest.aspx?action=getphone&time="+new Date().getTime(),true);
    xmlHttp.send(null);
 }
 
 function ajaxGetPhoneX(cid)
 {
 var xmlHttp;
 
 try
    {
   // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
 catch (e)
    {

  // Internet Explorer
   try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
   catch (e)
      {

      try
         {
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e)
         {
         alert("您的浏览器不支持AJAX！");
         return false;
         }
      }
    }
	
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
             document.getElementById(cid).innerHTML = xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","/scenic_spot/AjaxRequest.aspx?action=getphone&x=1&time="+new Date().getTime(),true);
    xmlHttp.send(null);	
 }